package com.itcam.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

//1.演示的路径的精确匹配和模糊匹配

@Controller
public class Hello01Controller {

    @RequestMapping("/hello/h01")
    @ResponseBody
    public String h01(){
        System.out.println("Hello springmvc!");
        return "succ" ;
    }

    @RequestMapping("/hello/*")
    @ResponseBody
    public String h02(){
        System.out.println("Hello springmvc2!");
        return "succ02" ;
    }

    @RequestMapping("/hello/**")
    @ResponseBody
    public String h03(){
        System.out.println("Hello springmvc3!");
        return "succ03" ;
    }

}
